luci-mod-network: fix handling of optional RA/NDP options
authorHannu Nyman <[email protected]>
Tue, 20 Apr 2021 18:06:42 +0000 (21:06 +0300)
committerHannu Nyman <[email protected]>
Tue, 20 Apr 2021 18:13:33 +0000 (21:13 +0300)
commitaf7a61d3a6c7bd6ceef03d4a2ad70b0366ad9d38
tree85224d5da134282a5d851c0a9ecfe49a9e47b52e
parent7d913b997601d533cca187cfc1b3057c3c98effc
luci-mod-network: fix handling of optional RA/NDP options

Fix the handling of optional IPv6 RA and NDP options
that were exposed to LuCI with 504bdb23f

Commit 504bdb23f defined them optional but provided default values.
Those values might get unnecessarily written to /etc/config dhcp when
the the user modifies some other values. Remove the default values,
but provide placeholder for some of them.

Add the missing optional definition to 'ndproxy_routing'.
(It is a flag, so optional default values do not get written to
the config file.)

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit b7dd10da0fcdc9c69857d848ce1d47243998a22c)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js